package cn.bass.marketing.entity;

import cn.bass.marketing.entity.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * 营销活动表
 */
@Data
@ApiModel(value = "营销活动表")
@TableName("marketing_activity")
@EqualsAndHashCode(callSuper = true)
public class MarketingActivityDO extends BaseEntity implements Serializable {
    /**
    * 主键
    */
    @JsonProperty("cId")
    @ApiModelProperty(value = "主键")
    @TableId(value = "C_ID", type = IdType.AUTO)
    private Integer cId;

    /**
    * 活动ID
    */
    @JsonProperty("cActivityId")
    @ApiModelProperty(value = "活动ID")
    private Integer cActivityId;

    /**
    * 活动策略ID
    */
    @JsonProperty("cMarketStrategyId")
    @ApiModelProperty(value = "活动策略ID")
    private Integer cMarketStrategyId;

    /**
    * 活动名称
    */
    @JsonProperty("cName")
    @ApiModelProperty(value = "活动名称")
    private String cName;

    /**
    * 活动内容
    */
    @JsonProperty("cContent")
    @ApiModelProperty(value = "活动内容")
    private String cContent;

    /**
    * 活动开始时间
    */
    @JsonProperty("cStartDate")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "活动开始时间")
    private Date cStartDate;

    /**
    * 结束时间
    */
    @JsonProperty("cEndDate")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "结束时间")
    private Date cEndDate;

    /**
    * 状态(ENABLED-启用, STOP-停用, DELETE-删除)
    */
    @JsonProperty("cStatus")
    @ApiModelProperty(value = "状态(ENABLED-启用, STOP-停用, DELETE-删除)")
    private String cStatus;

    /**
    * 活动每天初始次数
    */
    @JsonProperty("cUserDayCount")
    @ApiModelProperty(value = "活动每天初始次数")
    private Integer cUserDayCount;

}